﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MarkControle.Models.Funcionario>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Criando sua Conta</h2>
    <p>
        Use os campos abaixo para se cadastrar no sistema.
    </p>
    <p>
         <%: ViewData["PasswordLength"] %> characters in length.
    </p>

    <% using (Html.BeginForm("Cadastro","Login",FormMethod.Post)) { %>
        <%: Html.ValidationSummary(true, "Não foi possivel realizar o cadastro, corrija os erros.") %>
        <div>
            <fieldset>
                <legend>Account Information</legend>
                

                      Senha Master
                <div class="editor-field">     
                    <%: Html.PasswordFor(models => models.Senmax1) %>
                    <%: Html.ValidationMessage("Senmax1")%>
             

                    </div>



                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Nome) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Nome) %>
                    <%: Html.ValidationMessageFor(models => models.Nome) %>
             
                </div>
                
                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Username) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Username) %>
                    <%: Html.ValidationMessageFor(models => models.Username) %>
                  
                </div>
                
                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Senha) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Senha) %>
                    <%: Html.ValidationMessageFor(models => models.Senha) %>
                </div>
                
                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Cpf) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Cpf) %>
                    <%: Html.ValidationMessageFor(models => models.Cpf) %>
                </div>
                 <div class="editor-label">
                    <%: Html.LabelFor(models => models.Acesso) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Acesso) %>     Digite 0 para acesso restrito, 1 para acesso moderado ou 2 para acesso livre.
                    <%: Html.ValidationMessageFor(models =>models.Acesso)%>
               
                    </div>

                      <div class="editor-label">
                    Área
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Area) %>
                    <%: Html.ValidationMessageFor(models =>models.Area)%>
                    </div>

            


                <p>
                    <input type="submit" value="Registrar" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
